package com.peanut.service.impl;

import com.peanut.mapper.RoleInterfaceMapper;
import com.peanut.service.PermissionService;
import com.spring.annotation.Autowired;
import com.spring.annotation.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
	@Autowired
	private RoleInterfaceMapper roleInterfaceMapper;
	
	@Override
	public List<String> getAllPermissionByRoleId(int id) {
		List<String> roleInterfaces = roleInterfaceMapper.queryAllApiString(id);
		return roleInterfaces;
	}
}
